<script setup>
import {ref} from "vue";

let emits = defineEmits(['sendInfo']);
let info = ref("Hello, Vue!")

function sentEvent() {
  emits("sendInfo", info)
}
</script>

<template>
  <button v-on:click="sentEvent">发送</button>
</template>

<style scoped>

</style>